import java.util.*;
public class _caw4791 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        int n,x,y;
        int all1=0;
        int all2=0;
        int all3=0;
        int all4=0;
        for(int i=0;i<t;i++){
            n=sc.nextInt();
            x=sc.nextInt();
            y=sc.nextInt();
            if(n==1){
                all1+=x;
                all2+=y;
            }else {
                all3+=x;
                all4+=y;
            }
            
            
        }
        if(all1>=all2){
            System.out.println("LIVE");
        }else System.out.println("DEAD");
        if(all3>=all4){
            System.out.println("LIVE");
        }else System.out.println("DEAD");
    }
}
